/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Excecoes;

import model.Cliente;

/**
 *
 * @author Andre
 */
public class CEExcepiton extends Exception {
private Cliente cliente;
    /**
     * Creates a new instance of
     * <code>CEExcepiton</code> without detail message.
     */
    public CEExcepiton(Cliente cliente) {
        super("Cliente já existente!");
        this.cliente.setCpf(cliente.getCpf());
    }

    public long getCpf() {
        return cliente.getCpf();
    }
    

    /**
     * Constructs an instance of
     * <code>CEExcepiton</code> with the specified detail message.
     *
     * @param msg the detail message.
     */
    public CEExcepiton(String msg) {
        super(msg);
    }
}
